package edu.sctu.liangyuxiang.day20150614;

import java.io.File;
import java.io.IOException;

/**
 * Created by user20 on 2015/6/14.
 */
public class FileUntil {
    public static final String CREATE_PATH = "D://more";
    public static final String NEW_FILECREATE_PATH =CREATE_PATH+ "//TEXT0.txt";

    public void file(){
        File file  = new File(CREATE_PATH);
        file.mkdir();
    }

    public Boolean file1(){
        File file = new File(NEW_FILECREATE_PATH);
        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println(file.getPath());
        return false;
    }

    public void delete(){
        File file = new File(NEW_FILECREATE_PATH);
        file.delete();
        System.out.println(file.getPath());
    }
}
